package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yanghao
 * @since 2019-11-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_driver")
public class Driver extends Model<Driver> {

    private static final long serialVersionUID=1L;

    @TableId
    private String driverId;

    private String driverName;

    private String driverLicense;

    private String idCard;

    private String driverSex;

    private String driverControl;

    private String logisticsId;

    @TableField(exist = false)
    private String logisticsName;


    private String driverAge;

    private String remarks;

    private String status;

    private String createId;

    private Date createTime;

    private String updateId;

    private Date updateTime;

    @TableField(exist = false)
    private String companyId;


    @Override
    protected Serializable pkVal() {
        return this.driverId;
    }

}
